home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-01-18 | 892 b | 18 lines | [TEXT/ToyS] |
- property isGreyscale : true
- OpenDialog(standard dialog, "A standard, modal dialog box.")
- OpenDialog(standard window, "A standard, movable document window.")
- OpenDialog(movable dialog, "A movable dialog box.")
- OpenDialog(standard palette, "A movable palette style window.")
- OpenDialog(plain dialog, "A plain dialog box.")
- OpenDialog(sideways palette, "A movable sideways palette style window.")
- OpenDialog(shadowed dialog, "A shadowed, modal dialog box.")
-
- on OpenDialog(wStyle, msg)
- tell application "Finder" to activate
- dd auto dialog {size:[320, 95], style:wStyle, name:msg, contents:[¬
- {class:push button, bounds:[250, 65, 310, 85], name:"OK"}, ¬
- {class:push button, bounds:[170, 65, 230, 85], name:"Cancel"}, ¬
- {class:static text, bounds:[10, 10, 310, 10 + 32], contents:msg} ¬
- ]} grayscale isGreyscale
- if result's item 2 then error number -128 -- Exit silently
- end OpenDialog